stable

Clone or download

Read-only

[botmattermost] Copyright range for Enalean's files should be XXXX - Present

Expected copyright line for files edited by Enalean should looks like: `Copyright (c) Enalean, XXXX - Present. All Rights Reserved`. There are remaining files with the legacy form (`Copyright (c) Enalean, XXXX - YYYY. All Rights Reserved`) and contributors, sometimes (or most of the times in my case), forgot to update it whenever they touch a file. This generates noise in the reviewing process, so we should align every files. No functional changes expected. To update the file I used the following commands: ``` git grep -Pl 'Copyright.* Enalean.* 20\d\d\s*[-−–—]\s*\d' | xargs \ sed -rie 's/(Copyright.* Enalean.* [[:digit:]]{4})\s*[-−–—]\s*[[:digit:]]{4}/\1 - Present/' git grep -Pl 'Copyright.* Enalean.* 20\d\d\s*\.' | xargs \ sed -rie 's/(Copyright.* Enalean.* [[:digit:]]{4}\s*)\./\1 - Present./' ``` Remaining bits are detected with the following command and manually edited: ``` git grep Enalean | grep Copyright | grep -vi Present ``` Note: Unless I did something wrong in the previous command, sed is creating temporary files and do not delete them (while it should). So I must ran the following in order to remove leftovers (I could use `git clean` but I have untracked files I want to keep): ``` find . -type f -not -path '*node_modules/*' -a -not -path '*vendor/*' \ \( -name "*.tse" \ -o -name "*.jse" \ -o -name "*.cgie" \ -o -name "*.vuee" \ -o -name "*.diste" \ -o -name "*.ple" \ -o -name "*.tabe" \ -o -name "*.sqle" \ -o -name "*.pye" \ -o -name "*.ince" \ -o -name "*.phpe" \ -o -name "*.scsse" \ -o -name "*.xmle" \ -o -name "*.tple" \ -o -name "*.htmle" \ -o -name "*examplee" \ -o -name "*log_accume" \ -o -name "*.she" \ -o -name "*.mustachee" \ -o -name "*.txte" \) \ -exec rm "{}" \; ``` Part of request #19361: Copyright range for Enalean's files should be XXXX - Present Change-Id: Ic720816062e7b671c534b16f4f35942561ecd42d

Modified Files

Name
M db/mysql/updates/2016/201605271655_add_channels.php +1 −1 Go to diff View file
M db/mysql/updates/2016/201605311330_add_avatar_url_column.php +1 −1 Go to diff View file
M db/mysql/updates/2017/201703221547_delete_channels.php +1 −1 Go to diff View file
M include/BotMattermost/Bot/Bot.php +1 −1 Go to diff View file
M include/BotMattermost/Bot/BotDao.php +1 −1 Go to diff View file
M include/BotMattermost/Bot/BotFactory.php +1 −1 Go to diff View file
M include/BotMattermost/BotMattermostDeleted.php +1 −1 Go to diff View file
M include/BotMattermost/Controller/AdminController.php +1 −1 Go to diff View file
M include/BotMattermost/Exception/BotAlreadyExistException.php +1 −1 Go to diff View file
M include/BotMattermost/Exception/BotNotFoundExceptionException.php +1 −1 Go to diff View file
M include/BotMattermost/Exception/CannotCreateBotException.php +1 −1 Go to diff View file
M include/BotMattermost/Exception/CannotDeleteBotException.php +1 −1 Go to diff View file
M include/BotMattermost/Exception/CannotUpdateBotException.php +1 −1 Go to diff View file
M include/BotMattermost/Exception/ChannelsNotFoundException.php +1 −1 Go to diff View file
M include/BotMattermost/Plugin/PluginDescriptor.php +1 −1 Go to diff View file
M include/BotMattermost/Plugin/PluginInfo.php +1 −1 Go to diff View file
M include/BotMattermost/Presenter/AdminPresenter.php +1 −1 Go to diff View file
M include/BotMattermostLogger.php +1 −1 Go to diff View file
M include/SenderServices/Attachment.php +1 −1 Go to diff View file
M include/SenderServices/EncoderMessage.php +1 −1 Go to diff View file
M include/SenderServices/Exception/HasNoMessageContentException.php +1 −1 Go to diff View file
M include/SenderServices/MarkdownEngine/MarkdownTemplateRendererFactory.php +1 −1 Go to diff View file
M include/SenderServices/Message.php +1 −1 Go to diff View file
M include/constants.php +1 −1 Go to diff View file
M tests/unit/BotMattermost/AdminControllerTest.php +1 −1 Go to diff View file
M tests/unit/BotMattermost/SenderServices/EncoderMessageTest.php +1 −1 Go to diff View file
M tests/unit/BotMattermost/SenderServices/MarkdownEngine/MarkdownMustacheRendererTest.php +1 −1 Go to diff View file
M tests/unit/BotMattermost/SenderServices/MarkdownEngine/MarkdownTemplateRendererFactoryTest.php +1 −1 Go to diff View file
M tests/unit/BotMattermost/SenderServices/SenderTest.php +1 −1 Go to diff View file
M tests/unit/bootstrap.php +1 −1 Go to diff View file